<template>
  <div class="dashboard-container">
    <header-card>
      <slot />
    </header-card>
    <header-card>
      <slot />
    </header-card>
    <div class="common">
      <el-card>
        <ul class="common-list">
          <li>1</li>
          <li>1</li>
          <li>1</li>
          <li>1</li>
          <li>1</li>
          <li>1</li>
        </ul>
      </el-card>
    </div>
    <footer-card>
      <slot />
    </footer-card>
    <footer-card>
      <slot />
    </footer-card>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import HeaderCard from './components/header-card'
import FooterCard from './components/footer-card'
export default {
  name: 'Dashboard',
  components: {
    HeaderCard,
    FooterCard
  },
  computed: {
    ...mapGetters(['name'])
  }
}
</script>

<style lang="scss" scoped>
.dashboard-container {
  padding: 10px;

  &::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
  }
  .common {
    padding: 0 10px;
    margin-bottom: 20px;
    .common-list {
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: space-between;

      li {
        width: 195px;
        height: 112px;
        list-style: none;
        background-color: #fafafb;
        border-radius: 5px;
      }
    }
  }

}
</style>
